package com.zq.it.dao.admin;

import java.util.Collection;
import java.util.List;

import com.zq.it.pojo.Teacher;

public interface TeacherDao {

	public void saveTeacherEty(Teacher teacher);
	public void saveTeacherEtyList(Collection<Teacher> collection);
	public void deleteTeacherEtyByID(Integer id);
	public void deleteTeacherEtyByObj(Teacher teacher);
	public void deleteAllEty(long[] ids);
	public List<Teacher> findTeacherEtyList();
	public List findTeacherEtyById(Integer id);
	public void updateTeacherEty(Teacher teacher);
	public List findTeacherEtyByName(String name);
	// public List findTeacherEtyByDate(Date date);
	public List findTeacherEtyByExmp(Teacher teacher);
	public List findTeacherBySql(String sql);
	public List findTeacherByHQL(String hql);

	public void save(Teacher transientInstance);
	public void delete(Teacher persistentInstance);
	public Teacher findById(Long id);
	public List findByProperty(String propertyName, Object value);
	public List findByExample(Teacher instance);
	public List findByTeacherNo(Object teacherNo);
	public List findBySex(Object sex);
	public List findByName(Object name);
	public List findByBirth(Object birth);
	public List findByTitle(Object title);
	public List findByDegree(Object degree);
	public List findByEmail(Object email);
	public List findByTeacherImg(Object teacherImg);
	public List findByCreateTime(Object createTime);
	public List findByExtendFiled(Object extendFiled);
	public List findAll();
	public void update(Teacher instance);
	public List findByHql(String hql);

}
